package com.questionGenerator.controller;

import com.questionGenerator.model.PointDO;
import com.questionGenerator.model.UserDO;
import com.questionGenerator.service.PointService;
import com.questionGenerator.vo.UnifyResponseVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: usagi
 * @Date: 2024/04/16/22:32
 * @Description:
 */
@RestController
@RequestMapping("/point/")
public class PointController {
    @Autowired
    public PointService pointService;
    @GetMapping("/point-list")
    public UnifyResponseVO<List<PointDO>> getPointList(){
        return new UnifyResponseVO("200",pointService.getPointList());
    }
}
